#include <stdio.h>

int main()
{
    float sn = 100.0,hn = sn / 2;
    int n;
    for(n = 2;n <= 10; n++)
    {
        sn = sn + 2 * hn;
        hn = hn / 2;
    }
    printf("第十次落地时,一共经过%f米\n",sn);
    printf("第十次反弹%f米\n",hn);
}